package com.atguigu.stgy.app.service.impl;

import com.atguigu.stgy.app.mapper.ApartmentFacilityMapper;
import com.atguigu.stgy.app.service.ApartmentFacilityService;
import com.atguigu.stgy.model.dto.ApartmentDTO;
import com.atguigu.stgy.model.entity.ApartmentFacility;
import com.atguigu.stgy.model.entity.FacilityInfo;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;

import java.util.List;
import java.util.stream.Collectors;

@Service
public class ApartmentFacilityServiceImpl extends ServiceImpl<ApartmentFacilityMapper, ApartmentFacility> implements ApartmentFacilityService {


    @Override
    public List<FacilityInfo> getFacilityInfoByApartmentId(Long apartmentId) {
        return baseMapper.selectFacilityInfoByApartmentId(apartmentId);
    }


}
